# !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2023/4/24 16:04
# @Author : xyjiang1216
# @Email : jiangxuyan@nudt.edu.cn
# @File : compute_hyper_period.py
# @Version: OpenPlanner2.0
import math


def compute_hyper_period(*args):
    hyper_period = 1
    for period in args:
        hyper_period = int(period) * int(hyper_period) / math.gcd(int(period), int(hyper_period))
    return int(hyper_period)
